package com.yh.service;

import com.yh.pojo.User;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author syh
 * @version sms-3.0
 * @date 2021/7/12 10:48
 */
@DubboService
public class HelloServiceImpl implements HelloService{

    @Override
    public String test(String content) {

        System.out.println("这是服务提供者");
        return "接收的参数："+content;
    }

    @Override
    public User test1(Long id, String name) {
        User user = new User();
        user.setId(id);
        user.setName(name);
        return user;
    }

}
